package org.6;

import org.qjy.service.OrderService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;


@Configuration
@ComponentScan
@EnableAspectJAutoProxy

public class App 
{
    public static void main( String[] args )
    {
        ApplicationContext context = new AnnotationConfigApplicationContext(App.class);
        OrderService p = (OrderService) context.getBean(OrderService.class);
        p.delete("小米");
        p.add("电脑",68);
        p.findInfo("电脑",668);
        System.out.println(p);

    }
}
